<?php
/**
 * kol订单明细
 * (model)
 */

namespace App\Models\KolManage;


use Illuminate\Database\Eloquent\Model;

class KolOrderDetail extends Model{

    protected $table = 'k_kol_order_detail';

    protected $guarded = [];

    public function kol_order(){
        return $this->belongsTo(KolOrder::class, 'order_no', 'order_no');
    }

    public function kol_sku(){
        return $this->belongsTo(KolSku::class, 'kol_code','kol_code');
    }
}
